package com.qiaoba.module.system.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.qiaoba.common.database.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 参数配置
 *
 * @author ailanyin
 * @date 2023-09-09 16:21:49
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_config")
@NoArgsConstructor
public class SysConfig extends BaseEntity {

    @TableId
    @Excel(name = "主键", width = 20)
    @Schema(description = "主键")
    private String configId;

    @Excel(name = "参数名称", width = 25)
    @Schema(description = "参数名称")
    private String configName;

    @Excel(name = "参数键名", width = 30)
    @Schema(description = "参数键名")
    private String configKey;

    @Excel(name = "参数键值", width = 30)
    @Schema(description = "参数键值")
    private String configValue;

    @Excel(name = "系统内置", width = 20, replace = {"是_1", "否_0"})
    @Schema(description = "系统内置 1是0否")
    private String configType;

}
